<%@ page import="com.portico.dept.solarch.ProjectQuality" %>

<h1></h1>

<div class="list">
  <table>
    <thead>
    <tr>
         <g:sortableColumn property="id" title="${message(code: 'projectQuality.id.label', default: 'ID')}"/>

        <g:sortableColumn property="buildName" title="${message(code: 'projectQuality.buildName.label', default: 'Build Name')}"/>

        <g:sortableColumn property="issueStatus" title="${message(code: 'projectQuality.issueStatus.label', default: 'Issue Status')}"/>

        <g:sortableColumn property="type" title="${message(code: 'projectQuality.type.label', default: 'Type')}"/>

        <g:sortableColumn property="subType" title="${message(code: 'projectQuality.subType.label', default: 'Sub Type')}"/>
        <g:sortableColumn property="createDate" title="Created On"/>

        <g:sortableColumn property="blockerCount" title="Blockers"/>
        <g:sortableColumn property="criticalCount" title="Criticals"/>
        <g:sortableColumn property="majorCount" title="Majors"/>
        <g:sortableColumn property="minorCount" title="Minors"/>
        <g:sortableColumn property="trivialCount" title="Trivial"/>
    </tr>
    </thead>
    <tbody>
    <g:each in="${projectQualityInstanceList}" status="i" var="projectQualityInstance">
      <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

        <td><g:link controller="projectQuality" action="show" id="${projectQualityInstance.id}">${projectQualityInstance.id}</g:link></td>
        <td>${fieldValue(bean: projectQualityInstance, field: "buildName")}</td>
        <td>${fieldValue(bean: projectQualityInstance, field: "issueStatus")}</td>
        <td>${fieldValue(bean: projectQualityInstance, field: "type")}</td>
        <td>${fieldValue(bean: projectQualityInstance, field: "subType")}</td>
        <td>${fieldValue(bean: projectQualityInstance, field: "createdOn")}</td>

        <td>${fieldValue(bean: projectQualityInstance, field: "blockerCount")}</td>
        <td>${fieldValue(bean: projectQualityInstance, field: "criticalCount")}</td>
        <td>${fieldValue(bean: projectQualityInstance, field: "majorCount")}</td>
        <td>${fieldValue(bean: projectQualityInstance, field: "minorCount")}</td>
        <td>${fieldValue(bean: projectQualityInstance, field: "trivialCount")}</td>
      </tr>
      <tr>
        <td colspan="12">

          ${fieldValue(bean: projectQualityInstance, field: "comments")}

        </td>
      </tr>
    </g:each>
    </tbody>
  </table>
</div>
